package com.cy.chess;

import com.cy.controller.MasterController;
import com.cy.controller.MusicController;
import com.cy.member.Chessboard;
import com.cy.member.ControlPanel;

/**
 * 中国象棋
 * @author CY
 *
 */
public class Chess{

	public static void main(String args[]) throws InterruptedException{
		//创建棋盘
		Chessboard chessboard = new Chessboard();
		//创建控制面板
		ControlPanel controlPanel = new ControlPanel(chessboard.getLocation());
		//将棋盘交由总控控制
		MasterController.Controller(chessboard,controlPanel);
		//开启背景音乐
		MusicController.switchoverBackgroundMusic();
	}
	
}

